<?php
# ***** BEGIN LICENSE BLOCK *****
# This file is part of "myWiWall".
# Copyright (c) 2007-2008 CRP Henri Tudor and contributors.
# All rights reserved.
#
# "myWiWall" is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
# 
# "myWiWall" is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with "myWiWall"; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# ***** END LICENSE BLOCK *****


/**
 * main configuration file
 * 1. Framework configuration.
 */

# plugins directory
define("DIR_PLUGINS"		, dirname(__FILE__). "/../plugins/");

# actions directory
define("DIR_ACTIONS"		, dirname(__FILE__). "/../actions/");

# models directory
define("DIR_MODELS"			, dirname(__FILE__). "/../models/");

# views directory
define("DIR_VIEWS"			, "views/");

# database configuration
define("DATABASE_LOGIN"		, "root");
define("DATABASE_PASS"		, "");
define("DATABASE_URL"		, "localhost");
define("DATABASE_DRIVER"	, "mysql");
define("DATABASE_NAME"		, "palette_portal");
define("DATABASE_TRANSACTIONAL", true);

# classpath for class and interfaces autoloading
$GLOBALS['classpath']			= array(dirname(__FILE__)."/core/",
										dirname(__FILE__)."/../actions/",
										dirname(__FILE__)."/../models/",
										dirname(__FILE__)."/util/",
										dirname(__FILE__)."/proxy/",
										dirname(__FILE__)."/rest/",
										dirname(__FILE__)."/mywiwall-openid/",
										dirname(__FILE__)."/../ws/resources/",
										dirname(__FILE__)."/db/",										
										dirname(__FILE__)."/exceptions/",
										dirname(__FILE__)."/install/");
# theme directory
$GLOBALS['dir_theme']		= 'default/';

# language
$GLOBALS['lang']				= 'en';

# experimental Openid "SSO" mode, default to false
define('OPENID_SSO_MODE', false);
// -------------------------------------------------------------------------------------

/**
 * 2. MyWiWall Configuration.
 */

# application name
define('APPNAME', 				'');

# logs management
define('LOGS_USERS',			false);
define('LOGS_USERS_SRC',		'');

# javascript debug management
define('USE_XBROWSER_DEBUGGER',	false);

# Palette User levels
$levels = array(
	'user' 			=> 0,
	'admin' 		=> 1,
	'superadmin' 	=> 2
);

# xml schema validation for widget manifests
define("VALIDATE_XML_FILE", true);
define("XML_SCHEMA_FILE", dirname(__FILE__).'/../schema/manifest.xsd');

/* base web service url */
define('BASE_WS_URL', '');

/* widget previews directory and URI */
define('BASE_PREVIEW_DIR', dirname(__FILE__).'/../ws/previews/');
define('BASE_PREVIEW_URI', '');

# service browser support
define('USE_SERVICE_BROWSER', false);
define('SERVICE_BROWSER_URI', '');

# minimum passwords length for end-users
define('PASSWORDS_MIN_LENGTH', 8);

#minimum username length for end-users
define('USERNAME_MIN_LENGTH', 3);

#maximum username length for end-users
define('USERNAME_MAX_LENGTH', 30);

#not accepted chars in username for end-users
$GLOBALS['USERNAME_FORBIDDEN_CHARS'] = array('\+','%','&',' ','\|','\$',';',',','\\','/');

# base portal URI #
define('BASE_PORTAL_URI', '');

# use minified javascript
define('MINIFIED_JS', true);
?>